﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TorchlightModOverseer.Domain.Models;
using TorchlightModOverseer;
using System.IO;
using System.IO.IsolatedStorage;

namespace TorchlightModOverseer.Domain
{
	public class ConfigService
	{
		IStorageService StorageService;

		public ConfigService(IStorageService storageService)
		{
			StorageService = storageService;
		}

		public ConfigModel GetConfig()
		{
			return StorageService.Retrieve<ConfigModel>();
		}

		public void SaveConfig(ConfigModel model)
		{
			StorageService.Store(model);
		}
	}
}
